/**
 * 返回头部刘海高度
 */
export function getStatusBarHeight() {
	let SYSTEM_INFO = uni.getSystemInfoSync()
	return SYSTEM_INFO.statusBarHeight;
}


/**
 * 返回胶囊按钮高度
 */
export function getMenuButtonInfo() {
	let {
		top,
		height
	} = uni.getMenuButtonBoundingClientRect()

	return (top - getStatusBarHeight()) * 2 + height;
}

export function getTopHeight() {
	return getStatusBarHeight() + getMenuButtonInfo();
}